import VueRouter from 'vue-router';
// 单独页面开始
const Index = () => import(/* webpackChunkName: "login" */ 'components/view/index');
const NotFound = () => import(/* webpackChunkName: "404" */ 'components/404/index');
// 单独页面结束

const router = new VueRouter({
  mode: 'hash',
  routes: [
    { path: '/', redirect: '/index' },
    {
      path: '/index',
      name: 'index',
      component: Index,
    },
    { path: '*', component: NotFound }
  ]
});
export default router;
